Move File
AutomatR.OneDriveApp.Activities.MoveFile
The "Move File" activity in AutomatR is part of the OneDrive activities package, designed to move a file from a specified source path to a designated destination path within the user's OneDrive account. This activity streamlines the file management process in OneDrive, enhancing the efficiency of automation workflows.
Properties
Name | Description |
---|---|
Input | |
Source Path | Specifies the file path from the drive of the file you wish to move. String variables containing the source file path. |
Destination Path | Specifies the drive folder path where you would like to move the file to. String variables containing the destination folder path. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Move File" activity. Integer variables containing the delay duration. Example: 5 seconds i.e. 5. |
How to Use
- Drag and drop the "Move File" activity onto the workflow.
- Configure the properties by specifying the source file path and the destination folder path within the OneDrive account.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to move the specified file within OneDrive.
Important Notes:
- Ensure that the activity is placed within a "OneDrive Scope" activity to establish the necessary authentication scope.
- The "Source Path" parameter specifies the file path from the drive of the file you want to move.
- The "Destination Path" parameter specifies the drive folder path where you want to move the file to.
Example:
Consider an example where the "Move File" activity is used to move a file named "document.txt" from one folder to another within OneDrive:
Move File:
Display Name: "Move Document File"
Source Path: "/Folder1/document.txt"
Destination Path: "/Folder2/"
In this example, the activity moves the "document.txt" file from the "Folder1" directory to the "Folder2" directory within OneDrive.